package com.hbnu.test.www.Human;

public class Son extends Father {
    static {
        System.out.println("Son's message:");
    }
    private String name = "Liu Shan";
    private int id = 2;

    public Son(String name, int id) {
        this.name = name;//有参构造
        this.id = id;
    }

    public void introduction() {
        System.out.println("name: " + name + ", id: " + id + ".");
    }

}
